Server Side Event Handlers - Data Submitted - JSON

Description

When the UX makes any type of Ajax callback, the data that are submitted (including data in Repeating Sections) are now available in a convenient new property called

e.dataSubmittedJSON

For example, assume your UX had the following controls: Firstname, Lastname and a Repeating Section called 'CONTAINER_1' with AddressType and Address. The e.dataSubmittedJSON value might look like this:

{ 
    FIRSTNAME: 'Fred',
    LASTNAME: 'Smith',
    CONTAINER_1: [
        { 
            ADDRESSTYPE: 'Work',
            ADDRESS: '123 Main St'
        },
        {
            ADDRESSTYPE: 'Home',
            ADDRESS: '456 Center St'

        }
    ]
}

You can use the Xbasic JSON_Parse() function to parse this JSON string.